<template>
  <view class="detail">
    <!-- 上部分 -->
    <view class="detail-top">
      <view class="status-bar"></view>
      <view class="top">
        <view class="top-left" @click="tobookLook()">
          <image src="../../static/booklook/in-back.png" mode=""></image>
        </view>
        <view class="top-tit">
          账户明细
        </view>
        <view class="top-right">
          <image src="../../static/booklook/magnifying_glass.png" class="left-sea"></image>
          <image src="../../static/booklook/wait.png" class="right-last"></image>
        </view>
      </view>
      <!-- 建设银行 -->
      <view class="jianshe-middle">
        <view class="jianshe-left">
          <view class="left-item left-item2" @click="show = true">
            <view class="item-tit">
              建设银行(0910)
            </view>
            <view class="item-image">
              <image src="../../static/booklook/arrows.png" mode=""></image>
            </view>
          </view>
          <!-- 弹出层 -->
          <view class="tanchhuceng">
            <u-popup :show="show" @close="close" @open="open" :round="20">
              <slot>
                <view class="tanchhuceng-top">
                  <view class="tanchhuceng-top-img" @click="show = !true">
                    <image src="../../static/indexmore/close.png" mode=""></image>
                  </view>
                  <view class="tanchhuceng-top-tit">
                    选择账户
                  </view>
                  <view class="tanchhuceng-top-none">

                  </view>
                </view>
                <view class="tanchhuceng-bottom">
                  <view class="tanchhuceng-bottom-img">
                    <image src="../../static/booklook/bank_logo.png" mode=""></image>
                  </view>
                  <view class="tanchhuceng-bottom-tit">
                    建设银行龙卡通（0910）
                  </view>
                </view>
              </slot>
            </u-popup>
          </view>
          <!-- 弹出层 -->
          <view class="left-item" @click="show2 = true">
            <view class="item-tit">
              活期储蓄
            </view>
            <view class="item-image">
              <image src="../../static/booklook/arrows.png" mode=""></image>
            </view>
          </view>
          <!-- 弹出层 -->
          <view class="tanchhuceng">
            <u-popup :show="show2" @close="close2" @open="open2" :round="20">
              <slot>
                <view class="tanchhuceng-top">
                  <view class="tanchhuceng-top-img" @click="show2 = !true">
                    <image src="../../static/indexmore/close.png" mode=""></image>
                  </view>
                  <view class="tanchhuceng-top-tit">
                    选择子账户
                  </view>
                  <view class="tanchhuceng-top-none">

                  </view>
                </view>
                <view class="tanchhuceng-bottom">
                  <view class="tanchhuceng-bottom-tit">
                    人民币&nbsp;活期储蓄&nbsp;活期
                  </view>
                </view>
                <view class="tanchhuceng-bottom-tit2">
                  开户日期:2021/10/05
                </view>
              </slot>
            </u-popup>
          </view>
          <!-- 弹出层 -->
        </view>
        <view class="jianshe-right">
          <view class="left-item left-item2">
            <view class="item-tit">
              筛选
            </view>
            <view class="item-image">
              <image src="../../static/booklook/arrows.png" mode=""></image>
            </view>
          </view>
          <view class="left-item">
            <view class="item-tit">
              时间
            </view>
            <view class="item-image">
              <image src="../../static/booklook/arrows.png" mode=""></image>
            </view>
          </view>
        </view>
      </view>
      <!-- 建设银行 -->
      <!-- 收入支出 -->
      <view class="bg">
        <view class="bg-time">
          <view class="time">
            2023.02.11至2023.03.13
          </view>
          <view class="img">
            <image src="../../static/booklook/arrows.png" mode=""></image>
          </view>
        </view>
        <view class="money">
          <view class="money-left">
            <view class="monty-type">
              支出
            </view>
            <view class="money-num">
              ￥0.00
            </view>
          </view>
          <view class="money-left money-right">
            <view class="monty-type">
              收入
            </view>
            <view class="money-num">
              ￥0.00
            </view>
          </view>
        </view>
      </view>
      <!-- 收入支出 -->
    </view>
    <!-- 上部分 -->
    <!-- 内容 -->
    <view class="detail-con">
      <view class="con-image">
        <image src="../../static/booklook/bottom.png" mode=""></image>
      </view>
      <view class="con-tit">
        没有查询到符合条件的明细记录
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        show: false,
        show2: false
      };
    },
    methods: {
      tobookLook() {
        uni.navigateBack({
          delta: 1
        })
      },
      open() {
        console.log('open');
      },
      close() {
        this.show = false
        console.log('close');
      },
      open2() {
        console.log('open');
      },
      close2() {
        this.show2 = false
        console.log('close');
      }
    }
  }
</script>

<style lang="scss">
  page {
    background-color: #F6F6F6;
  }

  .detail {
    width: 100vw;

    // 上部分
    .detail-top {
      width: 100vw;
      overflow: hidden;
      position: fixed;
      background-color: #F6F6F6;
      z-index: 999;

      .status-bar {
        width: 100vw;
        height: var(--status-bar-height);
      }

      .top {
        width: 90vw;
        margin: 0 auto;
        height: 88rpx;
        line-height: 88rpx;
        display: flex;
        justify-content: space-between;

        .top-left {
          image {
            width: 50rpx;
            height: 50rpx;
            vertical-align: middle;
          }
        }

        .top-tit {
          font-size: 40rpx;
        }

        .top-right {
          .left-sea {
            width: 50rpx;
            height: 50rpx;
            vertical-align: middle;
          }

          .right-last {
            width: 50rpx;
            height: 10rpx;
            margin-left: 30rpx;
          }
        }
      }

      // 建设银行
      .jianshe-middle {
        width: 90vw;
        height: 60rpx;
        line-height: 60rpx;
        margin: 30rpx auto;
        display: flex;
        justify-content: space-between;

        .jianshe-left {
          display: flex;

          .left-item {
            display: flex;

            .item-tit {
              font-size: 24rpx;
            }

            .item-image {
              image {
                width: 20rpx;
                height: 15rpx;
                margin-left: 10rpx;
                vertical-align: middle;
              }
            }
          }

          .left-item2 {
            margin-right: 20rpx;
          }

          // 弹出层
          .tanchhuceng {
            .tanchhuceng-top {
              width: 90vw;
              margin: 0 auto;
              height: 100rpx;
              line-height: 100rpx;
              display: flex;
              justify-content: space-between;
              border-bottom: 1px solid #F2F2F2;

              .tanchhuceng-top-img {
                image {
                  width: 40rpx;
                  height: 40rpx;
                  vertical-align: middle;
                }
              }

              .tanchhuceng-top-tit {
                font-size: 40rpx;
              }
            }

            .tanchhuceng-bottom {
              width: 90vw;
              margin: 20rpx auto;
              display: flex;

              .tanchhuceng-bottom-img {
                margin-right: 30rpx;

                image {
                  width: 40rpx;
                  height: 40rpx;
                  vertical-align: middle;
                }
              }

              .tanchhuceng-bottom-tit {
                color: #6D85A4;
              }
            }

            .tanchhuceng-bottom-tit2 {
              width: 90vw;
              margin: 0 auto;
              color: #A6A6A6;
              font-size: 26rpx;
            }
          }

          // 弹出层
        }

        .jianshe-right {
          display: flex;

          .left-item {
            display: flex;

            .item-tit {
              font-size: 24rpx;
            }

            .item-image {

              image {
                width: 20rpx;
                height: 15rpx;
                margin-left: 10rpx;
                vertical-align: middle;
              }
            }
          }

          .left-item2 {
            margin-right: 20rpx;
          }
        }
      }

      // 收入支出
      .bg {
        width: 90vw;
        margin: 0 auto;
        border-top-left-radius: 30rpx;
        border-top-right-radius: 30rpx;
        background-image: url('');
        background-size: 100% 100%;
        padding: 30rpx 20rpx;
        box-sizing: border-box;

        .bg-time {
          display: flex;

          .time {
            font-size: 40rpx;
            font-weight: bold;
          }

          .img {
            image {
              width: 30rpx;
              height: 20rpx;
              margin-left: 10rpx;
            }
          }
        }

        .money {
          height: 60rpx;
          line-height: 60rpx;
          display: flex;
          margin-top: 30rpx;

          .money-left {
            display: flex;

            .monty-type {
              color: #666666;
              margin-right: 10rpx;
            }

            .money-num {
              font-size: 40rpx;
            }
          }

          .money-right {
            margin-left: 60rpx;
          }
        }
      }
    }

    // 上部分
    // 内容
    .detail-con {
      width: 90vw;
      height: 100vh;
      margin: 0 auto;
      background-color: #fff;
      padding-top: 260px;
      position: relative;

      .con-image {
        text-align: center;

        image {
          width: 200rpx;
          height: 200rpx;
        }
      }

      .con-tit {
        text-align: center;
        color: #6B6B6B;
      }
    }
  }
</style>